<%= start_form_tag :controller=>'permission',:action=> "login" %>

<div title="Account login" id="loginform" class="form">
	<% if @flash['notice'] %>
      <div id="message"><%= @flash['notice'] %></div>
    <% end %>
    <%if !@session[:account]%>
    <h3>请登录系统</h3>
    <label for="account_login">登录ID:</label><br/>
    <input type="text" name="account_login" id="account_login" size="30" value="" maxlength="20"/><br/>

    <label for="account_password">密码:</label><br/>
    <input type="password" name="account_password" id="account_password" size="30" maxlength="20"/>

    <br/>
    <input type="submit" name="login" value="登录" class="primary" />
    <%else%>
    <font color="green">欢迎您使用YD-SCM进销存管理系统:</font><br/><br/>
    <img src="/images/announce.gif">&nbsp;&nbsp;首页通告<p/>
    <%="您有<font color='green'><strong>#{@paperCount}</strong></font>个订单还未交费" if @paperCount!=0%></br>
    <%="您有<font color='green'><strong>#{@messageCount}</strong></font>条未看消息" if @messageCount!=0%>
    <%end%>
</div>

<%= end_form_tag %>
